From 14970b26721b0587ff065ee893aea189b07e82c0 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 22 Jun 2005 20:13:45 +0000 Subject: [PATCH] Fix overlapping string copy exposed by tef. --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index e22b83d1a..d3a958284 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -805,7 +805,7 @@ char * str_utf8_to_cp1252( const char * str ) } } *cur = (char)value; - strcpy( cur+1, cur+bytes ); + memmove(cur+1, cur+bytes, strlen(cur+bytes) + 1); } cur++; } -- 2.30.2